﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TravelExpertsASP
{
    public partial class template : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.lblCopyDate.Text = System.DateTime.Now.ToShortDateString();
            if (Session["isSessionSet"] != null)
            {
                btnLogout.Visible = true;
                btnLoginHeader.Visible = false;
                Customer newCustomer = new Customer();
                
            }
        }

        protected void btnLogout_Click(object sender, EventArgs e)
        {
            Session.Abandon();
            Response.Redirect("index.aspx");
        }

        protected void btnLoginHeader_Click(object sender, EventArgs e)
        {

            Response.Redirect("login.aspx");
        }
    }
}